package com.example.keli.ui.userinfo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Tony on 2018/5/30.
 */

public class ImageUploadBean implements Parcelable {
    private String url;
    private String path;
    private String w;
    private String h;
    private String image_type;
    private int cover;//0不是封面，1是封面

    public int getCover() {
        return cover;
    }

    public void setCover(int cover) {
        this.cover = cover;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
    public String getImage_type() {
        return image_type;
    }

    public void setImage_type(String image_type) {
        this.image_type = image_type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getW() {
        return w;
    }

    public void setW(String w) {
        this.w = w;
    }

    public String getH() {
        return h;
    }

    public void setH(String h) {
        this.h = h;
    }

    public ImageUploadBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.url);
        dest.writeString(this.path);
        dest.writeString(this.w);
        dest.writeString(this.h);
        dest.writeString(this.image_type);
        dest.writeInt(this.cover);
    }

    protected ImageUploadBean(Parcel in) {
        this.url = in.readString();
        this.path = in.readString();
        this.w = in.readString();
        this.h = in.readString();
        this.image_type = in.readString();
        this.cover = in.readInt();
    }

    public static final Creator<ImageUploadBean> CREATOR = new Creator<ImageUploadBean>() {
        @Override
        public ImageUploadBean createFromParcel(Parcel source) {
            return new ImageUploadBean(source);
        }

        @Override
        public ImageUploadBean[] newArray(int size) {
            return new ImageUploadBean[size];
        }
    };
}
